using System.Collections;
using System.Collections.Generic;
using Cinemachine;
using UnityEngine;
using UnityEngine.VFX;

public class GameManager : Singleton<GameManager>
{
    [HideInInspector] public GameObject player;

    [HideInInspector] public GameObject mask;

    public Transform monsterList;
    
    // Start is called before the first frame update
    void Start()
    {
        mask = GameObject.Find("Mask");
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void InitGame()
    {
        CinemachineVirtualCamera virtualCamera = GameObject.FindObjectOfType<CinemachineVirtualCamera>();
        virtualCamera.Follow = GameManager.Instance.player.transform;
        InfoPanel infoPanel = (InfoPanel)UIManager.Instance.OpenPanel(UIConst.InfoPanel);
        infoPanel.UpdateHealthImg(player.GetComponent<Player>().health);
    }
}
